
<div class="form">
    <?php
    $form = $this->beginWidget('CActiveForm', array(
        'id' => 'login-form',
        'enableClientValidation' => true,
        'clientOptions' => array(
            'validateOnSubmit' => true,
        ),
    ));
    ?>



    <div class='controls'>
        <div class='caret'></div>
        <div class='form-wrapper'>
            <h1 class='text-center'>Sign in</h1>

            <div class='row-fluid'>
                <div class='span12 icon-over-input'>
                    <?php echo $form->textField($model, 'username', array('class'=>'span12', 'placeholder'=>'Username')); ?>
                    <?php echo $form->error($model, 'username'); ?>
                    <i class='icon-user muted'></i>
                </div>
            </div>
            <div class='row-fluid'>
                <div class='span12 icon-over-input'>
                    <?php echo $form->passwordField($model, 'password', array('class'=>'span12', 'placeholder'=>'Password')); ?>
                    <?php echo $form->error($model, 'password'); ?>
                    <i class='icon-lock muted'></i>
                </div>
            </div>
            <label class="checkbox" for="remember_me">
                <?php echo $form->checkBox($model, 'rememberMe'); ?>
                <?php echo $form->label($model, 'rememberMe'); ?>
                <?php echo $form->error($model, 'rememberMe'); ?>
            </label>
            <?php echo CHtml::submitButton('Login', array('class' => 'btn btn-block')); ?>

<!--            <div class='text-center'>
                <hr class='hr-normal' />
                <a href="forgot_password.html">Forgot your password?</a>
            </div>-->
        </div>
    </div>

    <?php $this->endWidget(); ?>
</div><!-- form -->




